import request from '@/utils/request.js';

export async function reqMember(params) {
    return request('/user/'+params.current+'/'+params.limit,{
        method:'GET',
    })
}

export async function deleUser(params) {
    return request('/user/'+params,{
        method:'DELETE'
    })
}

export async function addUser(params) {
    return request('/user/',{
        method:'POST',
        data:params
    })
}
export async function editUser(params) {
    return request('/user/superadmin/update',{
        method:'PUT',
        data:params
    })
}